package glassline.mock;
import transducer.TChannel;
import transducer.TEvent;
import transducer.TReceiver;
import transducer.Transducer;

public class MockGUI implements TReceiver {

	Transducer transducer;
	
		
	public MockGUI (Transducer t){
		super();
		transducer = t;
		transducer.register(this, TChannel.GUI);
	}
	
	
	public MockGUI (){
		
	}
	
	public synchronized void eventFired(TChannel channel, TEvent event, Object[] args){
		switch(channel){
		case GUI:
			switch(event){
			case GLASSDONE:
				System.out.println("Glass has been finished.  Stopping the conveyor...");
				break;
			case STARTSHIPPERCONVEYOR:
				System.out.println("Starting the conveyor...");
				break;
			case STOPSHIPPERCONVEYOR:
				System.out.println("Stopping the conveyor...");
				break;
			}
			break;
		case CONTROL_PANEL:
			break;
		}

	}

	
}
